<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="shortcut icon" href="favicon.ico" />
    <link rel="bookmark"href="favicon.ico" />
</head>
<body>
<div>
    <c:choose>
        <c:when test="${sessionScope.name !=null}">
            ${sessionScope.name}(<a href="logout.do">登出</a>)
        </c:when>
        <c:otherwise>
            <a href="login.jsp">请登录</a>
        </c:otherwise>
    </c:choose>
</div>
</body>
</html>
